package com.community.controller;

import com.community.base.BaseController;
import com.community.common.Const;
import com.community.common.ServerResponse;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 评论操作控制层
 */
@RestController
@RequestMapping("/commentOperationController/")
@CrossOrigin(origins = Const.REQUESTURL,maxAge = 3600,allowCredentials = "true")
public class CommentOperationController extends BaseController {

    /**
     * 评论操作
     * @param paramMap
     * @param request
     * @return
     */
    @PostMapping("commentOperation.do")
    public ServerResponse<String> commentOperation(@RequestParam Map paramMap, HttpServletRequest request){
        return iCommentOperationService.commentOperation(paramMap,request);
    }
}
